﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/masAdmin.master" ValidateRequest="false"
    AutoEventWireup="true" CodeFile="TipNewsDetail.aspx.cs" Inherits="admin_TipNewsListDetail" %>

<%@ Import Namespace="CommonTagTime" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagename" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="Server">
    <script src="../scripts/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript" language="javascript">

        tinyMCE.init({
            // General options
            mode: "exact",
            elements: "<%=txtDescription.ClientID %>",
            theme: "advanced",

            // Theme options

            plugins: "spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

            // Theme options
            theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
            theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",

            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left"
        });

    </script>
    <div class="content-box-header">
        <h3>
            <%if (this.Type == (int)enmTipNewsType.Tip)
              { %>
            Step by Step Detail
            <%}
              else
              {%>
            News & Events Detail
            <%} %>
        </h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <table border="0" cellpadding="0" cellspacing="0" class="table100">
                <tr>
                    <td colspan="2">
                        <span class="commentRequireInputText">
                            <%=Resources.Resource.LBL_REQUIREMENT%>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td align="left">
                        <asp:ValidationSummary ID="vsumTipNew" runat="server" ShowMessageBox="true" ShowSummary="false"
                            CssClass="errorMessage" />
                        <asp:Label ID="lblErrorMessage" runat="server" CssClass="errorMessage"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="150px" align="right">
                        Title(<span class="commentRequireInputText">*</span>):
                    </td>
                    <td>
                        <asp:TextBox ID="txtTitle" MaxLength="255" Width="700px" runat="server">
                        </asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqTitle" runat="server" EnableClientScript="true"
                            CssClass="errorMessage" ErrorMessage="Title is require" Display="Dynamic" ControlToValidate="txtTitle">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                        Page Title:
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtPageTitle" MaxLength="255" Width="700px" runat="server"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                        Meta Keywords:
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtMetaKeywords"  Width="700px" Height="120px" runat="server"
                            TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                        Meta Description:
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtMetaDescription"  Width="700px" Height="120px" runat="server"
                            TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Thumb Image:
                    </td>
                    <td colspan="3">
                        <asp:FileUpload ID="fulThumbImage" runat="server" />
                        <asp:CustomValidator ID="cusThumbImage" runat="server" SetFocusOnError="true" EnableClientScript="true"
                            Display="Dynamic" ErrorMessage="RequiredFieldValidator" OnServerValidate="CheckSImageValid"
                            ControlToValidate="fulThumbImage">*</asp:CustomValidator>
                    </td>
                </tr>
                <tr id="trThumbImage" runat="server" visible="false">
                    <td align="right">
                    </td>
                    <td colspan="3">
                        <asp:Image ID="imgThumbImage" runat="server" ToolTip="Thumb Image" AlternateText="Thumb Image" />&nbsp;
                        <asp:LinkButton ID="lbtnDeleteThumbImage" runat="server" Text="Delete this image"
                            OnClick="lbtnDeleteThumbImage_Click" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Active:
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsActive" runat="server" Checked="true" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                        <asp:Label ID="lblShortDes" runat="server" Text="Short Description"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtShortDescription" MaxLength="500" Width="700px" Height="120px"
                            runat="server" TextMode="MultiLine">
                        </asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqShortDescription" runat="server" EnableClientScript="true"
                            CssClass="errorMessage" ErrorMessage="Short Description is require" Display="None"
                            ControlToValidate="txtShortDescription">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                        Description:
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtDescription" MaxLength="500" Width="705px" Height="460px" runat="server"
                            TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="height: 40px;" valign="bottom">
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" OnClick="btnSave_Click"
                            CausesValidation="true" />
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="Cancel" OnClick="btnCancel_Click"
                            CausesValidation="false" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
